package com.oscarmovie.service;

import java.util.List;

import com.oscarmovie.dao.ImageDao;
import com.oscarmovie.model.Image;
import com.oscarmovie.model.Paging;

public class ImageServiceImpl implements ImageService{
	private ImageDao imageDao;

	public void setImageDao(ImageDao imageDao) {
		this.imageDao = imageDao;
	}

	public ImageDao getImageDao() {
		return imageDao;
	}

	
	public void save(Image image) {
		imageDao.save(image);
	}

	
	public Image load(int id) {
		Image image =  imageDao.load(id);
		return image;
	}

	
	public List<Image> loadAll(Paging paging) {
		return imageDao.loadAll(paging);
	}
}
